#include"Select.hpp"

int main(int argc, char* argv[])
{
    if (argc!= 2)
    {
        cout<<"Please bind a port number"<<endl;
        exit(-1);
    }
    string str = argv[1];
    if(!atoi(str.c_str()))
    {
        cout<<"请输入正确的端口号"<<endl;
        exit (-1);
    }
    int port = atoi(str.c_str());
    unique_ptr<Select> select(make_unique<Select>());
    select->Init();
    select->Start();

    return 0;
}